//using Quartz;

//namespace MvcCms.Service.Code
//{
//  public static class QuartzExtensions
//  {
//    public static void ScheduleJobEasy<TJob>(this IScheduler jobScheduler, ITrigger trigger) where TJob : IJob
//    {
//        var name = typeof(TJob).Name;
//        var job = JobBuilder.Create<TJob>().WithIdentity(name).Build();
//        var newJobTrigger = TriggerBuilder.Create()
//                   .WithIdentity(name + " trigger").StartNow()
//                   .WithCronSchedule("0 1 3 * * ?").Build();
//        jobScheduler.ScheduleJob(job, newJobTrigger);
//    }
//  }
//}